<template>
  <div class="title">
    <div class="mb-10"><span>小卡片</span></div>
    <div>
      <slot><input type="text" placeholder="请输入" /></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'card' // 全局注册时用到的组件名
}
</script>

<style scoped>
  .mb-10{
    margin-bottom: 10px;
  }
  .title{
    width: 300px;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #69f;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    padding: 15px;
  }
  .link{
    font-size: 14px;
    color: #fff;
    text-decoration: underline;
  }
</style>
